package student

import (
	"github.com/gin-gonic/gin"
	"go.uber.org/zap"
	"project/pkg/models"
)

func (h SHandler) StudentDelete(c *gin.Context) {
	resp := new(models.RespData)
	studentId := c.Query("student_id")
	//删除用户
	err := h.M.StudentDeleteByID(studentId)
	if err != nil {
		zap.L().Error("Student:UpdateInfo h.M.StudentUpdateInfoBuID err", zap.Error(err))
		resp.SendServerBusy(c)
		return
	}
	resp.SendSuccess(c)
}
